package com.lipy.ratelimit.redis;

import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface RedisLimit {

    String name() default "";

    String key() default "";

    String prefix() default "";

    int period();
    int count();

    LimitType limitType() default LimitType.CUSTOMER;

}
